<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html class="ltHtml">
<head>
<meta charset="utf-8">
<title>来三星抢Galaxy S6，把S6带回家</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
<meta name="format-detection" content="telephone=no,address=no,email=no" />
<meta name="mobileOptimized" content="width" />
<meta name="handheldFriendly" content="true" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" href="../style/base.css" />
<link rel="stylesheet" href="../style/common.css" />
<link rel="stylesheet" href="../style/s.css" />
</head>
<body>


	<div class="overlayerCnt lbWrap ">
		<h1 class="lbT">
			<img src="../case/pic_lbTitle.png" width="240" alt="">
		</h1>
		<h2 class="lbTitle"></h2>
		<ul class="lbList">
			<c:forEach items="${list}" var="user" varStatus="i">
				<li><span class="lbRank"> No.<fmt:formatNumber value="${i.index+1}" pattern="00" /> </span><img
					src="../images/${i.count}.jpg" alt="" class="userHeader"> <span
					class="name">${user.name}</span>
					<div class="data">
						<p class="quantity">${user.gamenum}个</p>
						<dl class="date">
							<dt>
								${fn:substring(user.date, 5, fn:length(user.date))}
							</dt>
							<dd>${user.time}</dd>
						</dl>
					</div></li>
			</c:forEach>
		</ul>
		<div class="lbList_myInfo">
			<img src="../images/10.jpg" alt="" class="userHeader" id="image">您目前排名No.${rank}
		</div>
	</div>

	<a href="${contextPath}/user/toDetail?city=${city}&city_name=${city_name}&stores=${stores}&store_name=${store_name}&provinces=${provinces}&province_name=${province_name}" class="btn_goOn"></a>
	<!-- e=body -->
	</div> 
	<script type="text/javascript" src="../script/jquery-1.11.2.min.js"></script>
	<script type="text/javascript">
		$(function() {
			var rank = "${rank}";
			if (rank <= 20) {
				$("#image").attr("src", "../images/" + rank + ".jpg");
			}
		})
	</script>
</body>
</html>